import React ,{ Component } from 'react';
class Com extends Component{
    render(){
        const listFn = this.props.data['08432550'].map((val) =>
            <li key={val.skuId}>
                <p>{val.pPrice}</p>
                <p>{val.skuId}</p>
                <p>{val.jdPrice}</p>
                <p>{val.name}</p>
                <p>{val.groupId}</p>
                <img style={{width:50+'px'}} src={val.image} alt={val.name}/>
            </li>
        )
        return(
            <React.Fragment>
            <ol className="list">{listFn}</ol>
            {/*<ul>
                {this.props.data['08432550'].map((val) =>
                    <li key={val.skuId}>
                        <p>{val.pPrice}</p>
                        <p>{val.skuId}</p>
                        <p>{val.jdPrice}</p>
                        <p>{val.name}</p>
                        <p>{val.groupId}</p>
                        <img style={{width:50+'px'}} src={val.image} alt={val.name}/>
                    </li>
              )}
              </ul>*/}
            </React.Fragment>
        )
    }
}
export default Com;
